/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package dao;

/**
 *
 * @author jfernan
 */
public class Person {
private String firstName;
private String lastName;
private String character;
private Boolean paidUp;

public Person() {
	super();
}

public Person(String character, String firstName,
		String lastName, Boolean paidUp) {
	super();
	this.character = character;
	this.firstName = firstName;
	this.lastName = lastName;
	this.paidUp = paidUp;
}

public String getFirstName() {
	return firstName;
}
public void setFirstName(String firstName) {
	this.firstName = firstName;
}
public String getLastName() {
	return lastName;
}
public void setLastName(String lastName) {
	this.lastName = lastName;
}
public Boolean getPaidUp() {
	return paidUp;
}
public void setPaidUp(Boolean paidUp) {
	this.paidUp = paidUp;
}
public String getCharacter() {
	return character;
}
public void setCharacter(String character) {
	this.character = character;
}
	@Override
public boolean equals(Object obj) {
	boolean equal;
	if (this == obj) {
		equal = true;
	} else if ((obj == null) ||
			(obj.getClass() != this.getClass())) {
		equal = false;
	} else {
		Person person = (Person) obj;
		equal = this.character.equals(person.character)
			&& this.firstName.equals(person.firstName)
			&& this.lastName.equals(person.lastName)
			&& this.paidUp.equals(person.paidUp);
	}
	return equal;
}
}
